// 心脑血管疾病评估
export const mainData = [
  {
    key: 'isHypotensor',
    name: '您当前是否在用降压类药物？',
    type: 'radio',
    value: '',
    valueTxt: '',
    rules: {
      require: true
    },
    unit: '',
    option: [
      {
        name: '是',
        value: 1
      },
      {
        name: '否',
        value: 0
      }
    ]
  },
  {
    key: 'currentSBP',
    name: '您近期测量血压高压值（收缩压）是多少？',
    type: 'inputNumber',
    value: '',
    valueTxt: '',
    unit: 'mmHg',
    rules: {
      require: true,
      max: 200,
      min: 70,
      decimal: 0
    },
    rulesTxt: '',
    option: null
  },
  {
    key: 'diabetes',
    name: '您是否已患有糖尿病？',
    type: 'radio',
    value: '',
    valueTxt: '',
    unit: '',
    rules: {
      require: true
    },
    rulesTxt: '',
    option: [
      {
        name: '是',
        value: 1
      },
      {
        name: '否',
        value: 0
      }
    ]
  },
  {
    key: 'ASCVDFamilyHistory',
    name: '您的父母、兄弟姐妹是否曾患有下列疾病？',
    tips: '疾病选项可以多选呦~',
    type: 'checkbox',
    value: [],
    valueTxt: [],
    unit: '',
    rules: {
      require: true
    },
    rulesTxt: '',
    option: [
      {
        name: '无',
        value: '0',
        conflict: true // 如果和别的选项相冲，加上这个属性（多选中的单选）
      },
      {
        name: '心肌梗死',
        value: 'I21'
      },
      {
        name: '冠心病',
        value: 'I25.1'
      },
      {
        name: '脑梗死',
        value: 'I63'
      },
      {
        name: '脑出血',
        value: 'I61.9'
      }
    ]
  },
  {
    key: 'smoke',
    name: '您是否吸烟?',
    type: 'radio',
    value: '',
    valueTxt: '',
    unit: '',
    rules: {
      require: true
    },
    rulesTxt: '',
    option: [
      {
        name: '从未',
        value: 0
      },
      {
        name: '已戒烟',
        value: 0.5
      },
      {
        name: '吸烟',
        value: 1
      },
      {
        name: '不吸烟但经常吸二手烟',
        value: 2
      }
    ]
  },
  {
    key: 'region',
    name: '您生活在北方还是南方？',
    type: 'radio',
    value: '',
    valueTxt: '',
    rules: {
      require: false
    },
    rulesTxt: '',
    unit: '',
    option: [
      {
        name: '北方',
        value: 1
      },
      {
        name: '南方',
        value: 2
      }
    ]
  },
  {
    key: 'urbanRural',
    name: '您居住在城市还是农村？',
    type: 'radio',
    value: '',
    valueTxt: '',
    rulesTxt: '',
    rules: {
      require: false
    },
    unit: '',
    option: [
      {
        name: '城市',
        value: 1
      },
      {
        name: '农村',
        value: 0
      }
    ]
  },
  {
    key: 'waistline',
    name: '您的腰围是多少？',
    type: 'inputNumber',
    value: '',
    valueTxt: '',
    unit: 'cm',
    rules: {
      require: false,
      decimal: 0,
      min: 50,
      max: 130
    },
    rulesTxt: '',
    option: null
  },
  {
    key: 'tc',
    name: '您的总胆固醇是多少？',
    type: 'inputNumber',
    value: '',
    valueTxt: '',
    unit: 'mmol/L',
    rules: {
      require: false,
      decimal: 3,
      min: 2.069,
      max: 10.343
    },
    rulesTxt: '',
    option: null
  },
  {
    key: 'hdlc',
    name: '您的高密度脂蛋白胆固醇是多少？',
    type: 'inputNumber',
    value: '',
    valueTxt: '',
    unit: 'mmol/L',
    rules: {
      require: false,
      decimal: 3,
      min: 0.517,
      max: 3.361
    },
    rulesTxt: '',
    option: null
  }
];
